<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<head>
<!-- Javascript
================================================== --> 
<script src="<c:url value="/p/js/jquery.min.js"/>"></script> 
<script src="<c:url value="/p/js/jquery-ui-1.8.22.custom.min.js"/>"></script> 
<script src="<c:url value="/p/js/jquery.easing.1.3.js"/>"></script> 
<script src="<c:url value="/p/js/jquery.slides.js"/>"></script> 
<script src="<c:url value="/p/js/jquery.color.js"/>"></script> 
<script src="<c:url value="/p/js/jquery.prettyphoto.js"/>"></script> 
<script src="<c:url value="/p/js/jquery.validate.js"/>"></script> 
<script src="<c:url value="/p/js/jquery.tweet.js"/>"></script> 
<script src="<c:url value="/p/js/jquery.adipoli.js"/>"></script> 
<script src="<c:url value="/p/js/jquery.flexslider.js"/>"></script> 
<script src="<c:url value="/p/js/jquery.isotope.min.js"/>"></script> 
<script src="<c:url value="/p/js/jquery.progress.js"/>"></script> 
<script src="<c:url value="/p/js/jquery.tipsy.js"/>"></script> 
<script src="<c:url value="/p/js/jquery_pagination/jquery.pagination.js"/>"></script> 

<link rel="stylesheet" href="<c:url value="/p/js/jquery_pagination/pagination.css"/>" >
</head>
<body>


<!--notification-->
<div class="notification">
  <div class="container">
    <iframe scrolling="no" frameborder="0"  style="width:100%;height:100%"></iframe>
  </div>
</div>
<!--.notification--> 

<jsp:include page="include/_1top.jsp"></jsp:include>

<!--header-->
<div class="header"> 
  <div class="container">
  
  
    
  <jsp:include page="include/_2menu.jsp"></jsp:include>
    
</div>
</div>
<!--.header--> 

<!--inner page title and breadcrumbs-->
<div class="inner-page">
  <div class="container">
    <jsp:include page="include/_innerpage.jsp"></jsp:include>
  </div>
</div>
<!--.inner page title and breadcrumbs--> 

<!--content-->
<div class="container">
  <div class="sixteen columns">
    <c:if test="${total==0}">
    <div class="twelve columns offset-by-two error-page">
      <div class="six columns offset-by-three search clearfix">
        <h2>找不到内容</h2>
        <hr>
        <a href="javascript:history.go(-1);">返回上一页</a>
      </div>
    </div>
    </c:if>
    <c:if test="${total>0}">
    满足搜索条件的有${total }条记录。
    <div id="Pagination" class="pagination">
        </div>
    <table width="98%%" id="dg" style="background:#FFFFFF;" cellspacing="1">
  <tr align="center" style="font-weight:bold;background:#EBF1FD">
    <td style="line-height:30px">地址</td>
    <td>用途</td>
    <td>楼层</td>
    <td>规格</td>
    <td>面积</td>
    <td>单价</td>
    <td>总价</td>
  </tr>
  <c:forEach items="${esinfos}" var="info" varStatus="status">
  <tr>
    <td align="left" style="line-height:24px"><a href="<c:url value="/p/detail"/>?id=${info.local_id}" target="_balnk">${info.address }</a></td>
    <td align="center"><a href="<c:url value="/p/detail"/>?id=${info.local_id}" target="_balnk">${info.purpose }</a></td>
    <td align="center"><a href="<c:url value="/p/detail"/>?id=${info.local_id}" target="_balnk">${info.layer }</a></td>
    <td align="center"><a href="<c:url value="/p/detail"/>?id=${info.local_id}" target="_balnk">${info.room }</a></td>
    <td align="center"><a href="<c:url value="/p/detail"/>?id=${info.local_id}" target="_balnk">${info.area }平方米</a></td>
    <td align="center"><a href="<c:url value="/p/detail"/>?id=${info.local_id}" target="_balnk">${info.price }${info.unit }</a></td>
    <td align="center"><a href="<c:url value="/p/detail"/>?id=${info.local_id}" target="_balnk">${info.totalprice }元</a></td>
  </tr>
  </c:forEach>
  </table>
  <br>
   <div id="Pagination1" class="pagination">
        </div> 
    
    </c:if>
    
    
    
    
  </div>
</div>
<!--.content--> 

<!--footer-->
<div class="footer"> 
  
  <!--footer boxes-->
  <div class="container">
  
  <jsp:include page="include/_level12.jsp"></jsp:include>
  
    
  </div>
  <!--.footer boxes--> 
  
  <!--copyright-->
  <div class="copyrights">
    <div class="container">
      <div class="sixteen columns"> 
        
        <jsp:include page="include/_4footermenu.jsp"></jsp:include>
        
        <!--copy-->
        <div class="copy">
          <p>ICP证号：粤B2-12345678  汕头房居网版权所有 <span class="en-code" style="font-family: arial;font-size: 14px;">&#169;</span> 2013 </p>
        </div>
        <!--.copy--> 
        
      </div>
    </div>
  </div>
  <!--.copyright--> 
  
</div>
<!--.footer--> 

<!--scroll up--> 
<a href="#" class="scrollup"></a> 
<!--.scroll up--> 



<script>
$(document).ready(function(){ 
	$("#dg tr:first td").css("background-color","#EBF1FD"); 
	
    $("#dg tr:even td").css("background-color","#F4F9FD"); 
    $("#dg tr:odd td").css("background-color","ffffff");  //改变偶数行背景色

    <c:if test="${total>30}">
    // Create pagination element with options from form
    var optInit = ({callback:pageselectCallback,current_page:${pageno -1}, items_per_page:5, num_display_entries:10, num_edge_entries:2, prev_text:"上一页", next_text:"下一页"});
    $("#Pagination").pagination(${total}, optInit);
    $("#Pagination1").pagination(${total}, optInit);
    </c:if>
	

    
    
});

function pageselectCallback(page_index, jq){
  var pageno = page_index+1;
  if (pageno != ${pageno})
  window.location.href = "list?cd=${cd}&page=" + pageno;
  return false;
}
</script>
<!-- End Document
================================================== -->

</body>
